package org.ricks.gateway.cluster;

import lombok.AccessLevel;
import lombok.Data;
import lombok.experimental.FieldDefaults;
import java.util.List;

@Data
@FieldDefaults(level = AccessLevel.PRIVATE)
public class BrokerClusterMessage {
    String name;
    List<BrokerMessage> brokers;

    public int count() {
        return brokers != null ? brokers.size() : 0;
    }
}
